.flow-container {
  display: flex;
  /* 使用100%而不是固定高度 */
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.flow-wrapper {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.flow-content {
  height: 100%;
  /* 确保reactflow容器不溢出 */
  overflow: hidden;
}

.action-btn-save {
  background-color: #4caf50;
}

/* 节点选择菜单样式 */
.node-selection-menu {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  min-width: 120px;
}

.node-selection-menu .menu-title {
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 12px;
  text-align: center;
}

.node-selection-menu .menu-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.node-selection-menu .menu-options button {
  padding: 5px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background-color: white;
  font-size: 12px;
  transition: all 0.2s;
}

.node-selection-menu .menu-options button:hover {
  background-color: #f7fafc;
  border-color: #cbd5e0;
}

/* 工作流操作按钮位置调整，避免按钮溢出 */
.workflow-actions {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 10px;
  z-index: 10;
}
